﻿using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Outcoding.GraphGenerator.Office2003.UI.WinApplication;

namespace GGComWrapper {
	[Guid("A7613688-A041-45D3-96F4-C76FAA9F2F31"),
	ClassInterface(ClassInterfaceType.None),
	ComSourceInterfaces(typeof(IComWrapperEvents))]
	public class ComWrapper : IComWrapper, IDisposable {
		public void CallGenerator(string[] args){
			using (FrmChartGenerator frmChartGenerator = new FrmChartGenerator(args)){
				frmChartGenerator.Show();	
			}
		}

		/// <summary>
		/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
		/// </summary>
		/// <filterpriority>2</filterpriority>
		public void Dispose(){
			//nothing by now...
		}
	}
}
